<include file="__THEME__/header" />
<link href="../Public/css/purview.css" rel="stylesheet" type="text/css" />
<link href="__PUBLIC__/js/kissy/themes/default/editor-min.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="__PUBLIC__/js/kissy/neweditor.js"></script>
<script type="text/javascript">
function del(id){
	if(confirm("确认删除？")){
		var url = "{:U('portal/Cms/doDel',array('channelId'=>$channelId))}&id="+id;
		window.location.href = url;
	}	
}
</script>
<include file="../Public/myChannel" />
<div class="contents">
<include file="../Public/admin_tree" />
    <div class="content_pur_left R"> 
        <div>
            <div class="pur_t_box">
             <div class="list_box">
               <include file="../Public/nav_head" />
                <p class="tab_b"> <span> <a <php>if(empty($_GET['category'])){ echo "class='on'";}</php> href="{:U('portal/Cms/admin', array('channelId'=>$channelId))}">所有分类</a></span>
                <volist name='categoryList' id='vo'>
                <span>|</span>
                <span><a <php>if($_GET['category']==$vo['id']){ echo "class='on'";}</php> href="{:U('portal/Cms/admin', array('channelId'=>$channelId,'category'=>$vo[id]))}">{$vo.name}</a></span> 
                </volist></p>            
                <dl>
			  <dt>			  	
			  	<div style="width: 65%;" class="cl">文章标题</div>
			  	<div style="width: 15%;" class="cl">分类</div>
			  	<div style="width: 10%;" class="cl">发布者</div>
                <div style="width: 10%;" class="cc">操作</div>
			  </dt>
              <volist name='cms_list' id='vo'>
                <dd>                
			  	<div style="width: 65%;" class="cl"><a href="{:U('portal/Cms/detail',array('id'=>$vo[id],'channelId'=>$channelId))}" target="_blank">{$vo.title}</a></div>
			  	<div style="width: 15%;" class="cl">{$vo.category|getCategoryName}</div>
			  	<div style="width: 10%;" class="cl">{$vo.author}</div>
                <div style="width: 10%;" class="cc"><a href="{:U('portal/Cms/edit', array('cmsId'=>$vo[id],'channelId'=>$channelId))}">编辑</a> | 
                <a href="javascript:void(0)" onclick="del({$vo.id});return false;">删除</a></div><div class="C"></div>
                </dd>
                </volist>
                </dl>
                <p>{$page}</p>
            </div>
        </div>
    </div>
</div>
<div class="C"></div>
</div>
<include file="__THEME__/footer" />
